home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCAAAAPPPP____EEEENNNNVVVVLLLL((((3333CCCC)))) CCCCAAAAPPPP____EEEENNNNVVVVLLLL((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- cap_envl, cap_envp - ensure sufficient process privilege
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ccccaaaappppaaaabbbbiiiilllliiiittttyyyy....hhhh>>>>
-
- iiiinnnntttt ccccaaaapppp____eeeennnnvvvvllll((((iiiinnnntttt ffffllllaaaaggggssss,,,, ............ ////**** ccccaaaapppp____vvvvaaaalllluuuueeee____tttt ****////))))
-
- iiiinnnntttt ccccaaaapppp____eeeennnnvvvvpppp((((iiiinnnntttt ffffllllaaaaggggssss,,,, ssssiiiizzzzeeee____tttt nnnnccccaaaapppp,,,, ccccoooonnnnsssstttt ccccaaaapppp____vvvvaaaalllluuuueeee____tttt ****ccccaaaappppssss))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _c_a_p__e_n_v_l and _c_a_p__e_n_v_p ensure that the calling process will have
- sufficient privilege to perform actions requiring the specified
- capabilities. If the desired and current capability sets are different
- and if the desired capability set can be obtained because the process has
- the CAP_SETPCAP capability, then the capabilities in the desired will be
- acquired.
-
- _c_a_p__e_n_v_l accepts a variable argument list of capability values,
- terminated by an argument of 0 (or CCCCAAAAPPPP____NNNNOOOOTTTT____AAAA____CCCCIIIIDDDD).
-
- _c_a_p__e_n_v_p accepts a counted array of capability values, whose size is
- specified by _n_c_a_p and whose address is _c_a_p_s.
-
- _c_a_p__e_n_v_l and _c_a_p__e_n_v_p also understand several _f_l_a_g_s, which may be
- bitwise-ored together:
-
- CAP_ENV_SETUID If successful, set the process' effective userid to its
- real userid.
-
- CAP_ENV_RECALC If successful, set the CAP_FLAG_PURE_RECALC capability
- flag.
-
- _c_a_p__e_n_v_l and _c_a_p__e_n_v_p will return an error if they cannot give the
- calling process privilege equivalent to having the capabilities specified
- in _c_a_p_s, or if the optional actions specified by _f_l_a_g_s were not
- successful.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEESSSS
- _c_a_p__e_n_v_l and _c_a_p__e_n_v_p return 0 if successful, or -1 on error.
-
- EEEERRRRRRRROOOORRRRSSSS
- _c_a_p__e_n_v_l:
-
- EINVAL One of the specified capabilities is invalid.
-
- EPERM The calling process has insufficient privilege to perform
- privileged actions requiring the requested capabilities.
-
- _c_a_p__e_n_v_p:
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- CCCCAAAAPPPP____EEEENNNNVVVVLLLL((((3333CCCC)))) CCCCAAAAPPPP____EEEENNNNVVVVLLLL((((3333CCCC))))
-
-
-
- EINVAL _n_c_a_p is 0, _c_a_p_s is _NNNN_UUUU_LLLL_LLLL, or one of the specified
- capabilities is invalid.
-
- EPERM The calling process has insufficient privilege to perform
- privileged actions requiring the requested capabilities.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- cap_set_proc(3c), capabilities(4).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-